package com.neiquan.backstage.pub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.neiquan.backstage.core.PO;

@Entity
@Table
public class User extends PO {
	public static final Integer type_boss = 1;
	public static final Integer type_employee = 2;
	public static final Integer type_visitor_boss = 11;
	public static final Integer type_visitor_waiting_boss = 12;
	public static final Integer type_visitor = 13;
	public static final Integer STATUS_PASS = 1;
	public static final Integer STATUS_WAIT = 0;
	public static final Integer STATUS_REJECT = 2;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, nullable = false)
	private Integer userId;
	private String post;// 职位
	private Integer type;
	private String name;// 名字
	private String department;// 部门
	private String entrepreneurName;// 公司名字
	@Column(unique = true, nullable = false)
	private String phone;
	private String password;
	private Long dtCreat;
	private Integer memberId;
	private Integer status;
	private String entrepreneurUniqueId;// 公司唯一区分值
	private String weixin_openid;
	private String remark; // 驳回备注

	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return userId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEntrepreneurName() {
		return entrepreneurName;
	}

	public void setEntrepreneurName(String entrepreneurName) {
		this.entrepreneurName = entrepreneurName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getDtCreat() {
		return dtCreat;
	}

	public void setDtCreat(Long dtCreat) {
		this.dtCreat = dtCreat;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getWeixin_openid() {
		return weixin_openid;
	}

	public void setWeixin_openid(String weixin_openid) {
		this.weixin_openid = weixin_openid;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getEntrepreneurUniqueId() {
		return entrepreneurUniqueId;
	}

	public void setEntrepreneurUniqueId(String entrepreneurUniqueId) {
		this.entrepreneurUniqueId = entrepreneurUniqueId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
